import './assets/main.css'

import { createApp } from 'vue'
import { createPinia } from 'pinia'

import App from './App.vue'
import router from './router'
import './utils/axios-config' // 导入axios配置

// 开启路由调试模式
// import.meta.env.NODE_ENV === 'development' && router.options.history.listen((to, from, info) => {
//   console.log(`路由历史记录: 从 ${from.fullPath} 到 ${to.fullPath}, 操作类型: ${info.type}`)
// })

const app = createApp(App)

app.use(createPinia())
app.use(router)

app.mount('#app')
